﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NewTools
{
    internal class SaveValue
    {
        private MainWindow mainWindow = null;

        private static SaveValue instance = null;

        public static SaveValue GetInstance(MainWindow mainWindow)
        {
            if (null == instance)
                instance = new SaveValue(mainWindow);
            return instance;
        }


        public SaveValue(MainWindow mainWindow)
        {
            this.mainWindow = mainWindow;   
        }

        public void SaveSerialPortName_Get()
        { 
        }

        public bool TvSerialProperty_Save()
        {
            return ParseIni.GetInstance().TVSerialPortName_Write(mainWindow.comboBox_serial_port.Text.Trim());
        }
    }
}
